package com.shop.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.additional.query.impl.LambdaQueryChainWrapper;
import com.shop.entity.ActiveGoods;
import com.shop.mapper.ActiveGoodsMapper;
import com.shop.model.vo.Rsp;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 活动商品表
 * <p>
 * <p>
 * 陈炼豪(ActiveGoods)表服务接口
 *
 * @author makejava
 * @since 2020-11-21 11:02:32
 */
@Service
@AllArgsConstructor
public class ActiveGoodsService {
    private final ActiveGoodsMapper activeGoodsMapper;


    public Rsp getByActiveId(int activeId) {
        List<ActiveGoods> list = activeGoodsMapper.getByActiveId(activeId);
        return Rsp.success(list);
    }
}
